home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / Xpm / pixmap / Imakefile < prev    next >
Makefile  |  1994-08-01  |  2KB  |  75 lines

  1. #ifdef BandAidCompiler
  2. #include BandAidCompiler
  3. #endif
  4.  
  5. /*
  6.  *  Author:    Lionel Mallet, Simulog 
  7.  *  Created:   April 20, 1991.
  8.  */
  9.  
  10. # def/undef USE_MOTIF there if you want Pixmap to use Motif or not.
  11. # define USE_MOTIF 1
  12.  
  13. # Specify here your Xpm installation directories
  14.         XPM_INCLUDEDIR = $(INCDIR)
  15.         XPM_LIBDIR = ../lib/xpm-3.2g/lib
  16.         EXTRA_INCLUDES = -I. -I.. -I$(XPM_INCLUDEDIR)
  17.  
  18. #ifdef USE_MOTIF
  19. # Motif configuration
  20.   LOCAL_DEFINES = $(IEEE_DEFS) $(SIGNAL_DEFINES) -D_NO_PROTO
  21.         DEPLIBS = /usr/lib/libXm.a $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB) 
  22. LOCAL_LIBRARIES = -L$(XPM_LIBDIR) -lXpm -lXm $(XMULIB) $(XTOOLLIB) $(XLIB)
  23.         BITMAPS = DownM FlipHorizM FlipVertM FoldM  LeftM RightM RotateLeftM \
  24.                   RotateRightM Stipple UpM
  25. #else
  26. # Athena configuration
  27.   LOCAL_DEFINES = $(IEEE_DEFS) $(SIGNAL_DEFINES) -DUSE_ATHENA
  28.         DEPLIBS = XawClientDepLibs
  29. LOCAL_LIBRARIES =  -L$(XPM_LIBDIR) -lXpm XawClientLibs
  30.         BITMAPS = Down FlipHoriz FlipVert Fold  Left Right RotateLeft \
  31.                   RotateRight Stipple Up
  32. #endif
  33.  
  34.   SYS_LIBRARIES = -lm
  35.            SRCS = PixEdit.c Pixmap.c Dialog.c 
  36.            OBJS = PixEdit.o Pixmap.o Dialog.o 
  37.  
  38. #if ProjectX != 5
  39.         DEFINES = $(LOCAL_DEFINES) -DXPointer="char *"
  40. #else
  41.         DEFINES = $(LOCAL_DEFINES)
  42. #endif
  43.  
  44. ComplexProgramTarget(pixmap)
  45. InstallAppDefaults(Pixmap)
  46. InstallMultipleFlags($(BITMAPS), $(INCDIR)/bitmaps/Pixmap, $(INSTDATFLAGS))
  47.  
  48. AllTarget(dotpixmap)
  49.  
  50. all:: Pixmap.ad
  51.  
  52. clean:: Pixmap.ad
  53.     $(RM) Pixmap.ad
  54.  
  55. #ifdef USE_MOTIF
  56. Pixmap.ad: PixmapMotifAD
  57.     @echo Pixmap compiled with Motif.
  58.     @echo "*BitmapFilePath: $(INCDIR)/bitmaps/Pixmap" > Pixmap.ad
  59.     @cat PixmapMotifAD >> Pixmap.ad
  60. #else
  61. Pixmap.ad: PixmapAthenaAD
  62.     @echo Pixmap compiled with Athena.
  63.     @echo "*BitmapFilePath: $(INCDIR)/bitmaps/Pixmap" > Pixmap.ad
  64.     @cat PixmapAthenaAD >> Pixmap.ad
  65. #endif
  66.  
  67. dotpixmap: $(LIBDIR)/rgb.txt
  68.     awk 'NF == 4 && $$4 !~ /[Gg]rey/ && $$4 !~ /[0-9]/ {print $$4}' $(LIBDIR)/rgb.txt > dotpixmap
  69.  
  70. doc:    Pixmap.tex
  71.     latex Pixmap.tex
  72.     latex Pixmap.tex
  73.     dvps -o Pixmap.ps Pixmap.dvi
  74.  
  75.